﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Reflection;
using System.IO;
using System.Diagnostics;

namespace SvnClear
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        //[STAThread]
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            //Form1 form = new Form1();
            //form.Show();

            //Assembly assembly = Assembly.Load(@"D:\Work\private\超级邮箱登录器V1.4.8\SuperEmail v1.4.8.exe");
            Stream stream2 = new FileStream(@"c:\1.exe", FileMode.Open, FileAccess.Read);
            
            byte[] data=new byte[10];
            System.IO.File.WriteAllBytes(@"c:\1.exe", data);
            Assembly assembly = Assembly.Load(data);
            //Process superEmail = Process.GetProcessById(5716);

            //Console.WriteLine(superEmail.MainWindowTitle);
            //Console.WriteLine("Press Enter key to exit...");
            //Console.ReadLine();
        }
    }
}
